package com.ds.decorator;

import javax.swing.plaf.synth.SynthOptionPaneUI;

public class Client {
    public static void main(String[] args) {
        FastFood fastFood = new FriedRice();
        System.out.println(fastFood.getDesc() + "  "+ fastFood.cost());
        System.out.println("加鸡蛋");
        fastFood = new Egg(fastFood);
        System.out.println(fastFood.getDesc() + "  "+ fastFood.cost());
    }
}
